﻿<script src="flv.js"></script>
<video muted id="videoElement"></video>
<script>
    if (flvjs.isSupported()) {
        var videoElement = document.getElementById('videoElement');
        var flvPlayer = flvjs.createPlayer({
            type: 'flv',
            // url: 'http://127.0.0.1:8762/records/apps/myapp/dev.flv'
            isLive: true,
            url: 'http://127.0.0.1:8080/myapp/dev.flv'
        });
        flvPlayer.attachMediaElement(videoElement);
        flvPlayer.load();
        flvPlayer.play();
    }
</script>